Voice File Information Records
A voice file information record specifies the file in which a voice is stored and the resource ID of the voice within that file. You can use the GetVoiceInfo function to obtain a voice file information record for a voice. The VoiceFileInfo data type defines a voice file information record. In Pascal, the VoiceFileInfoPtr data type defines a pointer to a voice file information record.
TYPE VoiceFileInfo =
RECORD
fileSpec: FSSpec; {volume, dir, and name of file}
resID: Integer; {resource ID of voice in the file}
END;
Field Description
fileSpec
- A file system specification record that contains the volume, directory, and name of the file containing the voice. Generally, files containing a single voice are of type
kTextToSpeechVoiceFileType, and files containing multiple voices are of type kTextToSpeechVoiceBundleType.
resID
- The resource ID of the voice in the file. Voices are stored in resources of type kTextToSpeechVoiceType.